package cn.stylefeng.guns.comm.util;

import cn.stylefeng.guns.comm.bean.BetweenMonth;

public class BetweenTimeUtil {

    public static BetweenMonth getBetweenMonth(String betweenMonth, String split) {
        if (betweenMonth != null && betweenMonth.length() > 0) {
            String[] bm = betweenMonth.split(split);
            String startMonth = bm[0].trim();
            String endMonth = bm[1].trim();
            return new BetweenMonth(startMonth, endMonth);
        } else {
            return null;
        }
    }
}
